export default [
  // user
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      { path: '/user', redirect: '/user/login' },
      { path: '/user/login', component: './User/Login' },
    ],
  },
  // app
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    authority: ['admin'],
    routes: [
      { path: '/', redirect: '/welcome' },
      {
        path: '/welcome',
        name: 'home',
        icon: 'home',
        component: './Welcome/index',
      },
      {
        path: '/report',
        name: 'report',
        icon: 'snippets',
        routes: [
          {
            path: '/report/smsLog',
            name: 'sms-log',
            component: './SmsLog/SmsLog',
          },
          {
            path: '/report/loginOk',
            name: 'login-ok',
            component: './LoginLog/SuccessLog',
          },
          {
            path: '/report/loginFail',
            name: 'login-fail',
            component: './LoginLog/FailLog',
          },
        ],
      },
      {
        path: '/client',
        name: 'app',
        icon: 'appstore',
        component: './Client/ClientList',
      },
      {
        path: '/system',
        name: 'system',
        icon: 'setting',
        routes: [
          {
            path: '/system/dict',
            name: 'dict',
            component: './Dict',
          },
          {
            path: '/system/user/role',
            name: 'userRole',
            component: './SysUserRole',
          },
        ],
      },
    ],
  },
];
